import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name:'index',
    component:index
  },
  {
    path:'/product',
    name:'product',
    component:()=>import('@/views/product')
  },
  {
    path:'/honor',
    name:'honor',
    component:()=>import('@/views/honor')
  },
  {
    path:'/new',
    name:'new',
    component:()=>import('@/views/new')
  },
  {
    path:'/newDetail',
    name:'newDetail',
    component:()=>import('@/views/newDetail')
  },
  {
    path:'/about',
    name:'about',
    component:()=>import('@/views/about')
  },
  {
    path:'/online',
    name:'online',
    component:()=>import('@/views/online')
  },
  {
    path:'/other',
    name:'other',
    component:()=>import('@/views/other')
  },
  {
    path:'*',
    component:index
  }
]

const router = new VueRouter({
  routes,
})



export default router
